
<div class="BlockBar"><?php echo CHtml::activeLabel($this->model, 'category_add_title'); ?></div>
<?php $form = $this->beginWidget('CActiveForm', array('id' => 'category-form', 'enableAjaxValidation' => true)); ?>
<table cellspacing="1" cellpadding="4" class="tab">
    <tr class="row">
        <td width="73" class="align-right"><?php echo $form->labelEx($this->model, 'category_name'); ?>:</td>
        <td width="389"><?php echo $form->textField($this->model, 'category_name', array('size' => 40, 'maxlength' => 40)); ?><?php echo $form->error($this->model, 'category_name'); ?></td>
    </tr>
    <tr class="row">
        <td width="73" class="align-right"><?php echo $form->labelEx($this->model, 'category_alias'); ?>:</td>
        <td width="389"><?php echo $form->textField($this->model, 'category_alias', array('size' => 40, 'maxlength' => 40)); ?><?php echo $form->error($this->model, 'category_alias'); ?></td>
    </tr>
    <tr class="row">
        <td class="align-right"><?php echo $form->labelEx($this->model, 'category_parent_id'); ?>:</td>
        <td><?php echo $form->dropDownList($this->model, 'category_parent_id', $this->model->getParentOption()); ?>
            <?php echo $form->error($this->model, 'category_parent_id'); ?></td>
    </tr>
    <tr class="row">
        <td class="align-right"><?php echo $form->labelEx($this->model, 'category_title'); ?>:</td>
        <td><?php echo $form->textField($this->model, 'category_title', array('size' => 40, 'maxlength' => 40)); ?><?php echo $form->error($this->model, 'category_title'); ?></td>
    </tr>
    <tr class="row">
        <td class="align-right"><?php echo $form->labelEx($this->model, 'category_keywords'); ?>:</td>
        <td><?php echo $form->textField($this->model, 'category_keywords', array('size' => 40, 'maxlength' => 40)); ?><?php echo $form->error($this->model, 'category_keywords'); ?></td>
    </tr>
    <tr class="row">
        <td class="align-right"><?php echo $form->labelEx($this->model, 'category_description'); ?>:</td>
        <td><?php echo $form->textField($this->model, 'category_description', array('size' => 40, 'maxlength' => 40)); ?><?php echo $form->error($this->model, 'admin_status'); ?></td>
    </tr>
    <tr class="rows">
        <td class="rows"></td>
        <td class="rows"><?php echo CHtml::submitButton(Yii::t('app', '提 交'), array('class' => 'btn')); ?></td>
    </tr>
</table>
<?php $this->endWidget(); ?>